package com.aoyama.learnmvc.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author ：qs
 * @date ：Created in 2022/7/5
 * @description：
 * @modified By：
 */
public class AnnotationMainTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(MainConfig.class);
        Person bean = applicationContext.getBean(Person.class);
//        ApplicationContext context = bean.getContext();

//        System.out.println(context == applicationContext);
    }
}
